package com.dly.blog.domain.dto;

import lombok.Data;

import java.util.List;

@Data
public class FlySendDto {

    private FlyHeader header = new FlyHeader();

    private Parameter parameter = new Parameter();

    private Payload payload = new Payload();


    @Data
    public static class FlyHeader{

        private String app_id;

        private String uid;
    }

    @Data
    public static class Parameter{

        private Chat chat = new Chat();

    }

    @Data
    public static class Chat{

        private String domain = "general";

        private Double temperature = 0.5;


        private Integer max_tokens = 4096;
    }

    @Data
    public static class Payload{

        private Message message = new Message();

    }

    @Data
    public static class Message{
        private List<MessageContentDto> text;
    }

}
